package jianzhiOffer;
//剑指 Offer 65. 不用加减乘除做加法
public class Num65_add {
    public int add(int a, int b) {
        int m = a ^ b;
        int n = (a & b) << 1;
        while (n != 0){
            int temp = m ^ n;
            n = (m & n) << 1;
            m = temp;
        }
        return m;


    }
}
